package com.almond.handle.impl;

import com.alibaba.fastjson.JSON;
import com.almond.handle.RedisDelayQueueHandle;
import com.almond.model.DelayedTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 订单支付超时处理类
 * Created by LPB on 2021/04/20.
 */
@Component
@Slf4j
public class OrderPaymentTimeout implements RedisDelayQueueHandle<DelayedTask> {
	@Override
	public void execute(DelayedTask delayedTask) {
		// TODO 订单支付超时，自动取消订单处理业务...
		log.info("订单超时处理{}", JSON.toJSONString(delayedTask));
	}
}